class draught_source {
    constructor() {
        this.id = '';
        this.dtype = '';
        this.year = '';
        this.eday = '';
        this.path = '';
    }

    set(obj) {
        for (let i in obj) {
            if (i in this) {
                this[i] = obj[i];
            }
        }
        return this;
    }
}

module.exports = draught_source;